<cfscript>

mainNavItemNames = listToArray("aboutcalgrants,howtoapply,cashforcollege,questions,testimonials,links");
mainNavItemIds = listToArray("3,4,5,6,7,9");

</cfscript>
<cfoutput>
	<div class="mainNav">
		<div class="navbarContainer" id="navbarContainer">
			<table border="0" cellpadding="0" cellspacing="0">
				<tr valign="top">
					<cfloop index="i" from="1" to="#arrayLen(mainNavItemNames)#">
						<cfset itemName = mainNavItemNames[i]>
						<cfset itemId = mainNavItemIds[i]>
						<cfif i gt 1><td><img src="/common/images/spacer.gif" width="2" height="1" alt="" border="0"><br></td></cfif>
						<td>
							<script language="JavaScript" type="text/javascript">
							<!--
							
								#itemName#ImageOff = preload("/common/images/nav/#itemName#<cfif itemId eq currentParentId>-on<cfelseif inworkshops>-ws</cfif>.gif");
								#itemName#ImageOn = preload("/common/images/nav/#itemName#-on.gif");
							
							//-->
							</script>
							<a href="/index.cfm?navid=#itemId#" onmouseover="showNav('#itemName#');"><img name="#itemName#Image" src="/common/images/nav/#itemName#<cfif itemId eq currentParentId>-on<cfelseif inworkshops>-ws</cfif>.gif" alt="" border="0"></a><br>
							<cfset atLeastOne = false>
							<cfloop index="i" from="1" to="#ArrayLen(menu)#">
								<cfif menu[i].parentId eq itemId and menu[i].level eq 3 and menu[i].isvisible>
									<cfif not atLeastOne>
										<iframe id="#itemName#DhtmlnavIFrame" class="dhtmlIframe" frameborder="0" src="javascript: void(0);"></iframe>
										<div id="#itemName#Dhtmlnav" class="<cfif itemId eq 5>workshops </cfif>dhtmlnav" onmouseover="showNav('#itemName#');">
										<cfset atLeastOne = true>
									</cfif>
									<a href="/index.cfm?navId=#menu[i].navigationId#" class="dhtmlnavitem">#menu[i].name#</a>
								</cfif>
							</cfloop>
							<cfif atLeastOne>
								</div>
							<cfelse>
								<iframe id="#itemName#DhtmlnavIFrame" class="dhtmlIframe" frameborder="0" src="javascript: void(0);"></iframe>
								<div id="#itemName#Dhtmlnav" class="dhtmlnavEmpty"></div>
							</cfif>
						</td>
					</cfloop>
				</tr>
			</table>
		</div>
	</div>
</cfoutput>
